/**
 * 
 */
package com.eclipse.org.snms.reminder;

import com.eclipse.org.snms.StickyNote;
import com.eclipse.org.snms.TaskComposite;

/**
 * @author dimitri.tiago
 */
public class ReminderObserverTest implements ReminderObserver 
{	
	public ReminderObserverTest(ReminderSubject subject)
	{
		// subscribe to ReminderSubject
		subject.subscribe(this);
	}
	
	public void update(StickyNote stickyNote) 
	{
		// output to standard output stream
		System.out.print("Observer Updated!\n" + "Title: " + ((TaskComposite) stickyNote).getTitle() + " " + ((TaskComposite) stickyNote).getDescription() + "\n");
	}
	
	public static void main(String args[])
	{
		ReminderSubjectConcrete subject = new ReminderSubjectConcrete();
		ReminderObserverTest myTest = new ReminderObserverTest(subject);
		
		while(true)
		{
			// no op
		}
	}
}


